package com.example.innovate.domain;

import java.util.ArrayList;
import java.util.List;

public class PositionInfoDOExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PositionInfoDOExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPoIdIsNull() {
            addCriterion("po_id is null");
            return (Criteria) this;
        }

        public Criteria andPoIdIsNotNull() {
            addCriterion("po_id is not null");
            return (Criteria) this;
        }

        public Criteria andPoIdEqualTo(Integer value) {
            addCriterion("po_id =", value, "poId");
            return (Criteria) this;
        }

        public Criteria andPoIdNotEqualTo(Integer value) {
            addCriterion("po_id <>", value, "poId");
            return (Criteria) this;
        }

        public Criteria andPoIdGreaterThan(Integer value) {
            addCriterion("po_id >", value, "poId");
            return (Criteria) this;
        }

        public Criteria andPoIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("po_id >=", value, "poId");
            return (Criteria) this;
        }

        public Criteria andPoIdLessThan(Integer value) {
            addCriterion("po_id <", value, "poId");
            return (Criteria) this;
        }

        public Criteria andPoIdLessThanOrEqualTo(Integer value) {
            addCriterion("po_id <=", value, "poId");
            return (Criteria) this;
        }

        public Criteria andPoIdIn(List<Integer> values) {
            addCriterion("po_id in", values, "poId");
            return (Criteria) this;
        }

        public Criteria andPoIdNotIn(List<Integer> values) {
            addCriterion("po_id not in", values, "poId");
            return (Criteria) this;
        }

        public Criteria andPoIdBetween(Integer value1, Integer value2) {
            addCriterion("po_id between", value1, value2, "poId");
            return (Criteria) this;
        }

        public Criteria andPoIdNotBetween(Integer value1, Integer value2) {
            addCriterion("po_id not between", value1, value2, "poId");
            return (Criteria) this;
        }

        public Criteria andPoCorporateIsNull() {
            addCriterion("po_corporate is null");
            return (Criteria) this;
        }

        public Criteria andPoCorporateIsNotNull() {
            addCriterion("po_corporate is not null");
            return (Criteria) this;
        }

        public Criteria andPoCorporateEqualTo(String value) {
            addCriterion("po_corporate =", value, "poCorporate");
            return (Criteria) this;
        }

        public Criteria andPoCorporateNotEqualTo(String value) {
            addCriterion("po_corporate <>", value, "poCorporate");
            return (Criteria) this;
        }

        public Criteria andPoCorporateGreaterThan(String value) {
            addCriterion("po_corporate >", value, "poCorporate");
            return (Criteria) this;
        }

        public Criteria andPoCorporateGreaterThanOrEqualTo(String value) {
            addCriterion("po_corporate >=", value, "poCorporate");
            return (Criteria) this;
        }

        public Criteria andPoCorporateLessThan(String value) {
            addCriterion("po_corporate <", value, "poCorporate");
            return (Criteria) this;
        }

        public Criteria andPoCorporateLessThanOrEqualTo(String value) {
            addCriterion("po_corporate <=", value, "poCorporate");
            return (Criteria) this;
        }

        public Criteria andPoCorporateLike(String value) {
            addCriterion("po_corporate like", value, "poCorporate");
            return (Criteria) this;
        }

        public Criteria andPoCorporateNotLike(String value) {
            addCriterion("po_corporate not like", value, "poCorporate");
            return (Criteria) this;
        }

        public Criteria andPoCorporateIn(List<String> values) {
            addCriterion("po_corporate in", values, "poCorporate");
            return (Criteria) this;
        }

        public Criteria andPoCorporateNotIn(List<String> values) {
            addCriterion("po_corporate not in", values, "poCorporate");
            return (Criteria) this;
        }

        public Criteria andPoCorporateBetween(String value1, String value2) {
            addCriterion("po_corporate between", value1, value2, "poCorporate");
            return (Criteria) this;
        }

        public Criteria andPoCorporateNotBetween(String value1, String value2) {
            addCriterion("po_corporate not between", value1, value2, "poCorporate");
            return (Criteria) this;
        }

        public Criteria andPoPositionIsNull() {
            addCriterion("po_position is null");
            return (Criteria) this;
        }

        public Criteria andPoPositionIsNotNull() {
            addCriterion("po_position is not null");
            return (Criteria) this;
        }

        public Criteria andPoPositionEqualTo(String value) {
            addCriterion("po_position =", value, "poPosition");
            return (Criteria) this;
        }

        public Criteria andPoPositionNotEqualTo(String value) {
            addCriterion("po_position <>", value, "poPosition");
            return (Criteria) this;
        }

        public Criteria andPoPositionGreaterThan(String value) {
            addCriterion("po_position >", value, "poPosition");
            return (Criteria) this;
        }

        public Criteria andPoPositionGreaterThanOrEqualTo(String value) {
            addCriterion("po_position >=", value, "poPosition");
            return (Criteria) this;
        }

        public Criteria andPoPositionLessThan(String value) {
            addCriterion("po_position <", value, "poPosition");
            return (Criteria) this;
        }

        public Criteria andPoPositionLessThanOrEqualTo(String value) {
            addCriterion("po_position <=", value, "poPosition");
            return (Criteria) this;
        }

        public Criteria andPoPositionLike(String value) {
            addCriterion("po_position like", value, "poPosition");
            return (Criteria) this;
        }

        public Criteria andPoPositionNotLike(String value) {
            addCriterion("po_position not like", value, "poPosition");
            return (Criteria) this;
        }

        public Criteria andPoPositionIn(List<String> values) {
            addCriterion("po_position in", values, "poPosition");
            return (Criteria) this;
        }

        public Criteria andPoPositionNotIn(List<String> values) {
            addCriterion("po_position not in", values, "poPosition");
            return (Criteria) this;
        }

        public Criteria andPoPositionBetween(String value1, String value2) {
            addCriterion("po_position between", value1, value2, "poPosition");
            return (Criteria) this;
        }

        public Criteria andPoPositionNotBetween(String value1, String value2) {
            addCriterion("po_position not between", value1, value2, "poPosition");
            return (Criteria) this;
        }

        public Criteria andPoMajorIsNull() {
            addCriterion("po_major is null");
            return (Criteria) this;
        }

        public Criteria andPoMajorIsNotNull() {
            addCriterion("po_major is not null");
            return (Criteria) this;
        }

        public Criteria andPoMajorEqualTo(String value) {
            addCriterion("po_major =", value, "poMajor");
            return (Criteria) this;
        }

        public Criteria andPoMajorNotEqualTo(String value) {
            addCriterion("po_major <>", value, "poMajor");
            return (Criteria) this;
        }

        public Criteria andPoMajorGreaterThan(String value) {
            addCriterion("po_major >", value, "poMajor");
            return (Criteria) this;
        }

        public Criteria andPoMajorGreaterThanOrEqualTo(String value) {
            addCriterion("po_major >=", value, "poMajor");
            return (Criteria) this;
        }

        public Criteria andPoMajorLessThan(String value) {
            addCriterion("po_major <", value, "poMajor");
            return (Criteria) this;
        }

        public Criteria andPoMajorLessThanOrEqualTo(String value) {
            addCriterion("po_major <=", value, "poMajor");
            return (Criteria) this;
        }

        public Criteria andPoMajorLike(String value) {
            addCriterion("po_major like", value, "poMajor");
            return (Criteria) this;
        }

        public Criteria andPoMajorNotLike(String value) {
            addCriterion("po_major not like", value, "poMajor");
            return (Criteria) this;
        }

        public Criteria andPoMajorIn(List<String> values) {
            addCriterion("po_major in", values, "poMajor");
            return (Criteria) this;
        }

        public Criteria andPoMajorNotIn(List<String> values) {
            addCriterion("po_major not in", values, "poMajor");
            return (Criteria) this;
        }

        public Criteria andPoMajorBetween(String value1, String value2) {
            addCriterion("po_major between", value1, value2, "poMajor");
            return (Criteria) this;
        }

        public Criteria andPoMajorNotBetween(String value1, String value2) {
            addCriterion("po_major not between", value1, value2, "poMajor");
            return (Criteria) this;
        }

        public Criteria andPoNumberIsNull() {
            addCriterion("po_number is null");
            return (Criteria) this;
        }

        public Criteria andPoNumberIsNotNull() {
            addCriterion("po_number is not null");
            return (Criteria) this;
        }

        public Criteria andPoNumberEqualTo(String value) {
            addCriterion("po_number =", value, "poNumber");
            return (Criteria) this;
        }

        public Criteria andPoNumberNotEqualTo(String value) {
            addCriterion("po_number <>", value, "poNumber");
            return (Criteria) this;
        }

        public Criteria andPoNumberGreaterThan(String value) {
            addCriterion("po_number >", value, "poNumber");
            return (Criteria) this;
        }

        public Criteria andPoNumberGreaterThanOrEqualTo(String value) {
            addCriterion("po_number >=", value, "poNumber");
            return (Criteria) this;
        }

        public Criteria andPoNumberLessThan(String value) {
            addCriterion("po_number <", value, "poNumber");
            return (Criteria) this;
        }

        public Criteria andPoNumberLessThanOrEqualTo(String value) {
            addCriterion("po_number <=", value, "poNumber");
            return (Criteria) this;
        }

        public Criteria andPoNumberLike(String value) {
            addCriterion("po_number like", value, "poNumber");
            return (Criteria) this;
        }

        public Criteria andPoNumberNotLike(String value) {
            addCriterion("po_number not like", value, "poNumber");
            return (Criteria) this;
        }

        public Criteria andPoNumberIn(List<String> values) {
            addCriterion("po_number in", values, "poNumber");
            return (Criteria) this;
        }

        public Criteria andPoNumberNotIn(List<String> values) {
            addCriterion("po_number not in", values, "poNumber");
            return (Criteria) this;
        }

        public Criteria andPoNumberBetween(String value1, String value2) {
            addCriterion("po_number between", value1, value2, "poNumber");
            return (Criteria) this;
        }

        public Criteria andPoNumberNotBetween(String value1, String value2) {
            addCriterion("po_number not between", value1, value2, "poNumber");
            return (Criteria) this;
        }

        public Criteria andPoAddressIsNull() {
            addCriterion("po_address is null");
            return (Criteria) this;
        }

        public Criteria andPoAddressIsNotNull() {
            addCriterion("po_address is not null");
            return (Criteria) this;
        }

        public Criteria andPoAddressEqualTo(String value) {
            addCriterion("po_address =", value, "poAddress");
            return (Criteria) this;
        }

        public Criteria andPoAddressNotEqualTo(String value) {
            addCriterion("po_address <>", value, "poAddress");
            return (Criteria) this;
        }

        public Criteria andPoAddressGreaterThan(String value) {
            addCriterion("po_address >", value, "poAddress");
            return (Criteria) this;
        }

        public Criteria andPoAddressGreaterThanOrEqualTo(String value) {
            addCriterion("po_address >=", value, "poAddress");
            return (Criteria) this;
        }

        public Criteria andPoAddressLessThan(String value) {
            addCriterion("po_address <", value, "poAddress");
            return (Criteria) this;
        }

        public Criteria andPoAddressLessThanOrEqualTo(String value) {
            addCriterion("po_address <=", value, "poAddress");
            return (Criteria) this;
        }

        public Criteria andPoAddressLike(String value) {
            addCriterion("po_address like", value, "poAddress");
            return (Criteria) this;
        }

        public Criteria andPoAddressNotLike(String value) {
            addCriterion("po_address not like", value, "poAddress");
            return (Criteria) this;
        }

        public Criteria andPoAddressIn(List<String> values) {
            addCriterion("po_address in", values, "poAddress");
            return (Criteria) this;
        }

        public Criteria andPoAddressNotIn(List<String> values) {
            addCriterion("po_address not in", values, "poAddress");
            return (Criteria) this;
        }

        public Criteria andPoAddressBetween(String value1, String value2) {
            addCriterion("po_address between", value1, value2, "poAddress");
            return (Criteria) this;
        }

        public Criteria andPoAddressNotBetween(String value1, String value2) {
            addCriterion("po_address not between", value1, value2, "poAddress");
            return (Criteria) this;
        }

        public Criteria andPoPayIsNull() {
            addCriterion("po_pay is null");
            return (Criteria) this;
        }

        public Criteria andPoPayIsNotNull() {
            addCriterion("po_pay is not null");
            return (Criteria) this;
        }

        public Criteria andPoPayEqualTo(Double value) {
            addCriterion("po_pay =", value, "poPay");
            return (Criteria) this;
        }

        public Criteria andPoPayNotEqualTo(Double value) {
            addCriterion("po_pay <>", value, "poPay");
            return (Criteria) this;
        }

        public Criteria andPoPayGreaterThan(Double value) {
            addCriterion("po_pay >", value, "poPay");
            return (Criteria) this;
        }

        public Criteria andPoPayGreaterThanOrEqualTo(Double value) {
            addCriterion("po_pay >=", value, "poPay");
            return (Criteria) this;
        }

        public Criteria andPoPayLessThan(Double value) {
            addCriterion("po_pay <", value, "poPay");
            return (Criteria) this;
        }

        public Criteria andPoPayLessThanOrEqualTo(Double value) {
            addCriterion("po_pay <=", value, "poPay");
            return (Criteria) this;
        }

        public Criteria andPoPayIn(List<Double> values) {
            addCriterion("po_pay in", values, "poPay");
            return (Criteria) this;
        }

        public Criteria andPoPayNotIn(List<Double> values) {
            addCriterion("po_pay not in", values, "poPay");
            return (Criteria) this;
        }

        public Criteria andPoPayBetween(Double value1, Double value2) {
            addCriterion("po_pay between", value1, value2, "poPay");
            return (Criteria) this;
        }

        public Criteria andPoPayNotBetween(Double value1, Double value2) {
            addCriterion("po_pay not between", value1, value2, "poPay");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}